﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Hangtot.Main.ViewModels.Megamenu
{
    public class MainNav
    {
        private ICollection<LinkItem> _linkItems;

        public ICollection<LinkItem> Links
        {
            get { return _linkItems ?? (_linkItems = new List<LinkItem>()); }
            set { _linkItems = value; }
        }

        public override string ToString()
        {
            var sb = new StringBuilder();
            sb.Append("<div class=\"unstyled-list\">");
            sb.AppendLine();
            foreach (LinkItem link in Links)
            {
                sb.Append(link);
            }
            sb.AppendLine("</div>");

        }
    }
}